home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
comm
/
prtcs155.zip
/
UULOOKUP.WPL
< prev
next >
Wrap
Text File
|
1994-01-14
|
1KB
|
39 lines
/* UUlookup.wplrx For use with WPL and AmigaUUCP 1.13+
*
*
* This script allows WPL to look up a phone number for a site in the
* l.sys file
* Based upon:
* Russell McOrmond rwm@Atronx.OCUnix.On.Ca Net Support:(613) 230-2282(V.32Bis)
* FidoNet 1:163/109 Amiga-Fido 1:1/109 Current WPL 'keeper of sources'.
*/
Options RESULTS
Options failat 99999
parse arg callsystem
myhost=address()
say "Trying to look up "||callsystem||" with host '"||myhost||"'"
if ~Open('lsys',"UULib:l.sys",'R') then do
say "Error reading UULib:l.sys file!!!"
Exit 1
end
do forever
Line=ReadLn('lsys')
if EOF('lsys') then Leave
if Left(Line,1)='#' then Iterate
Parse var Line System Times Device Baud Phone Junk
if callsystem ~= System then Iterate
/* do any shell based stuff you might want to do */
/* address 'COMMAND' */
/* set host back to original to talk to slave */
address value myhost
'Set remote.number '||Phone
'Set remote.sitename '||system
'Set pw '||"LOOKUP"
Exit 0
end
Exit 1